/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sip_manager;

/**
 *
 * @author canhchimbang  : Tuan Hiep
 */
public class UA {

    public  UAListener  ua_listener;
    public UA(String stack_name, String myAddress, int myPort, String transport, String peerHostPort) {
        this.ua_listener=new UAListener(stack_name,myAddress,myPort,transport,peerHostPort);
           
    }

   
// In the phase of media exchange, two User Agent talk to each other    
    public void talk(){};
// To call an user agent
    public void call(){
    ua_listener.sendInvite();
        
    };
// To answer a call  
    public void answer(){
    ua_listener.sendInviteOK();
    
    };
// To hangup a call
    public void hangup(){
    
    ua_listener.sendBye();
    };
    public void stopTalking(){}
    
    };
    
    
    
    
    
    
    
    

